package com.cqc.jdk8.lambda.interfacetest;

public class InterfaceTest {

    public static void main(String[] args) {
        Formula formula = new Formula() {
            @Override
            public double calculate(int a) {
                return a*100;
            }
        };

        double c1 = formula.calculate(1);
        System.out.println(c1);

        double c2 = formula.sqrt(16);
        System.out.println(c2);
    }
}
